package com.tbit.uqbike.service.business;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tbit.uqbike.object.pojo.CodeBoundMachine;
import com.tbit.uqbike.object.pojo.ColorCode;
import com.tbit.uqbike.object.pojo.vo.BatchOperationMsgVO;
import com.tbit.uqbike.object.value.LoginInfo;
import com.tbit.uqbike.object.value.Page;
import com.tbit.common.entity.view.PageResult;

import java.util.List;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 10:54 2023/8/31
 */
public interface ColorCodeService extends IService<ColorCode> {

    /**
     * 分页查询
     *
     * @param accountId
     * @param machineNO
     * @param content
     * @return
     */
    PageResult<CodeBoundMachine> queryPage(Integer accountId, String machineNO, String content, Integer codeId, Page page);

    /**
     * 绑定
     *
     * @param machineNOs
     */
    BatchOperationMsgVO<String> add(List<String> machineNOs, Integer codeId, LoginInfo loginInfo);

    /**
     * 解绑
     *
     * @param machineNOs
     */
    void del(List<String> machineNOs, LoginInfo loginInfo);

    /**
     * 查询是否绑定设备
     *
     * @param codeId
     * @return
     */
    Integer getByCodeId(Integer codeId);
}
